import service from ".";
const ownerApi={
    insert(owner){
        return service.post('/admin/owner', owner);
    },
    delete(oid){
        return service.delete(`/admin/owner/${oid}`);
    },
    update(owner){
        return service.put('/admin/owner', owner);
    },
    selectAll(){
        return service.get('/admin/owner/selectAll');
    },
    selectByPage(pageNum,oname,ophone){
        return service.get('/admin/owner',{
            params:{
                pageNum,
                oname,
                ophone
            }
        });
    },
    selectByOid(oid){
        return service.get(`/admin/owner/select/${oid}`);
    },

};
export default ownerApi;